package com.biwin.module.orm.api.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import java.io.Serializable;

/**
 * TODO
 *
 * @author biwin
 * @since 0.0.1
 */
@NoRepositoryBean
public interface IBwBasicRepository<T, ID extends Serializable> extends JpaRepository<T, ID>,
        JpaSpecificationExecutor<T> {

    /**
     * 根据主键逻辑删除
     *
     * @param id
     * @return true:逻辑删除成功
     */
    boolean falseDelete(ID id);
}
